#include<stdio.h>
int main()
{
    char c;
    int letter=0,space=0,digit=0,other=0;
    printf("---------please enter a line of number--------\n");
    while ((c=getchar())!='\n')
    {
        if(c>='a'&&c<='z'||c>='A'&&c<='Z')
            letter++;
        
        else if (c==' ')
        
            space++;    
        
        else if(c>='0'&&c<='9')
        
            digit++;
        
        else
        other++;
          
    }
    printf("letter is %d\n,digit is %d\n,space is %d\n,other is %d\n",letter,digit,space,other);
    
}